<?php
session_start();
$number = $_SESSION[$_GET['code_id']];
$width = 60;
$height = 20;

if($number) 
{
	$img_number = imagecreate($width,$height);
	$shadow = imagecolorallocate($img_number,130,130,130);
	$bg = imagecolorallocate($img_number,212,208,200);
	$bg_frame = imagecolorallocate($img_number,160,173,179);
	$text = imagecolorallocate($img_number,255,255,255);
	
	imagefill($img_number,0,0,$bg);
	ImageRectangle($img_number,0,0,$width-1,$height-1,$bg);
	//ImageRectangle($img_number,0,0,$width-1,$height-1,$bg_frame);
	
	Imagestring($img_number,11,7,2,$number,$text);
	Imagestring($img_number,11,6,1,$number,$shadow);
	
	header("Content-type: image/jpeg");
	imagejpeg($img_number,'',100);
	imagedestroy($img_number);
}
?>